﻿@model XPressify.Models.AlbumEditInfoModel
@using XPressify.Data.Helpers

@{
    ViewBag.Title = Model.Name;
}

<br />
<div>@Html.ActionLink("Edit files", "AlbumFileEdit", new { id = Model.Id }, new { style="color:Blue"})</div>
<br />
 
@using (Html.BeginForm()) {
    
    <fieldset>
        <legend style="font-size:x-large;color:#222">Album</legend>
    
    @Html.ValidationSummary(true)
    
        

        @Html.HiddenFor(model => model.Id)

        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.Location)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PrivacyType) :
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.PrivacyType, new List<SelectListItem> { new SelectListItem { Text = "Everyone", Value = ObjectPrivacy.Everyone.ToString() }, new SelectListItem { Text = "FriendsOfFriends", Value = ObjectPrivacy.FriendsOfFriends.ToString() }, new SelectListItem { Text = "FriendsOnly", Value = ObjectPrivacy.FriendsOnly.ToString() }, new SelectListItem { Text = "Private", Value = ObjectPrivacy.Private.ToString() } })
            @Html.ValidationMessageFor(model => model.PrivacyType)
        </div>
        </fieldset>
}
